package sample.ws.entity;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * AccessRuleRepository..
 *
 * @author Lizhong
 * @date 2019/7/15
 */
@Repository
public interface AccessRuleRepository extends JpaRepository<ServiceAccessRuleEntity, Long> {
    ServiceAccessRuleEntity findByServiceIdAndEnableIsTrue(Long id);

    List<ServiceAccessRuleEntity> findAllByEnableIsTrue();
}
